//
//  OMOrderLog.m
//  OMENGO_NEW
//
//  Created by 梁尚嘉 on 2017/5/12.
//  Copyright © 2017年 Kamfat. All rights reserved.
//

#import "OMOrderLog.h"

@implementation OMOrderLog
+ (NSDictionary *)mj_replacedKeyFromPropertyName
{
    return @{@"operater":@"operator"};
}

- (NSString *)orderLogStr
{
    switch (self.type) {
        case OrderLogTypeCreate:    return @"交易开始";
        case OrderLogTypeUpdate:    return @"交易更新";
        case OrderLogTypeCancel:    return @"交易取消";
        case OrderLogTypeReview:    return @"卖家已接单";
        case OrderLogTypePayment:   return @"买家已付款";
        case OrderLogTypeRefunds:   return @"已退款";
        case OrderLogTypeShipping:  return @"配送中";
        case OrderLogTypeReturns:   return @"已退货";
        case OrderLogTypeReceive:   return @"已收货";
        case OrderLogTypeComplete:  return @"交易完成";
        case OrderLogTypeFail:      return @"交易失败";
        default:
            return @"未知状态";
            break;
    }
}
@end
